package com.dyava.commons.token_bucket;

public class BToken {
    int num;
    long lastExecuteTime;

    public BToken() {
    }

    public BToken(String key,int speed) {
        this.num = speed;
        this.lastExecuteTime = 0;
    }
    public BToken(int speed) {
        this.num = speed;
        this.lastExecuteTime = 0;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public long getLastExecuteTime() {
        return lastExecuteTime;
    }

    public void setLastExecuteTime(long lastExecuteTime) {
        this.lastExecuteTime = lastExecuteTime;
    }
}
